package sg.edu.nus.iss.jass.privilege;

import java.util.ArrayList;
import java.util.List;

import sg.edu.nus.iss.jass.constant.PrivilegeConstants;
import sg.edu.nus.iss.jass.gui.MenuFunction;

public class MenuFunctionsFactory {
	
	
	
	public static List<MenuFunction> getAccessFunctions(Class classType) {
		List<MenuFunction> result = new ArrayList<MenuFunction>();
		if (classType == AdvertiserRole.class) {
			result.add(new MenuFunction(PrivilegeConstants.ADD_JOB_AD));
			result.add(new MenuFunction(PrivilegeConstants.LISTING_JOB_AD));
			result.add(new MenuFunction(PrivilegeConstants.LOGOUT_FUNC));
		}else if (classType == JobSeekerRole.class) {
			result.add(new MenuFunction(PrivilegeConstants.SEACH_JOB_AD));
			result.add(new MenuFunction(PrivilegeConstants.LOGOUT_FUNC));
		}else if (classType == JobSeekerGuestRole.class) {
				result.add(new MenuFunction(PrivilegeConstants.REGISTER_JOB_SEEKER));
				result.add(new MenuFunction(PrivilegeConstants.SEACH_JOB_AD));
		}
	
		return result;
	}

}
